
<!DOCTYPE html>
<html>
  <head>
     <meta charset="utf-8">
    <title>Search Results</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    {{navbar}}
    <!-- Le styles -->
    <link href="../stylesheets/bootstrap.css" rel="stylesheet">
  </head>
  <body>

    <h1>Search Results</h1>
 <form action="/offer/search" method="post">
   <input type="text" name="query"/>
   <input type="submit" value="Search!" name="search">
 </form>
<!--results below-->
  <table border='1'><b>
  <tr><td>Title</td>
  <td>Subject</td>
  <td>Price</td>
  <td>Tutor</td>
  <td>Reputation</td></tr></b>
  {% for result in results %}
    <tr><td><a href="/offer/listing?id={{result.key()}}">{{result.title | escape}}</a></td>
       <td>{{result.subject | escape}}</td>
       <td>{{result.price}}</td>
       <td>{{result.tutor.username}}</td>
       <td>{{result.tutor.reputation}}</td>
    </tr>
  {% endfor %}
  </table>
 
  </body>
</html>
